import { TransformDate } from "@/common/decorators/transform-date.decorator";
import {
  IsBoolean,
  IsNotEmpty,
  IsNumber,
  IsOptional,
  IsString,
} from "class-validator";
export class CreateRecordDto {
  @IsString()
  @IsNotEmpty()
  content: string;

  @IsBoolean()
  @IsNotEmpty()
  status: boolean;

  @IsString()
  @IsNotEmpty()
  // @TransformDate()
  finishAt: string;

  @IsString()
  @IsNotEmpty()
  // @TransformDate()
  startAt: string;

  @IsString()
  @IsNotEmpty()
  // @TransformDate()
  endAt: string;

  @IsString()
  @IsNotEmpty()
  @IsOptional()
  remark: string;

  @IsNumber()
  @IsNotEmpty()
  priority: number;

  @IsNumber()
  @IsNotEmpty()
  userId: number;
}
